import instance from '../index';

const SHAREVIEW_URL = 'file/share/view';
const WECHAT_LOGIN = 'wechat/login';

async function viewShare (params) {
  return instance.post(SHAREVIEW_URL, params);
}

async function wechatLogin (params) {
  return instance.post(WECHAT_LOGIN, params);
}

export default {
  viewShare,
  wechatLogin,
};
